<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>简单加法器计算</title>
</head>

<body>
    <script type="text/javascript">
        var a = prompt("请您输入第一个值")
        var b = prompt("请您输入第二个值")
        alert('您的结果是' + (parseFloat(a) + parseFloat(b)))
    </script>
</body>

</html>